import {createBrowserRouter} from 'react-router-dom'
import { lazy } from 'react'


import Error from '../pages/404/Index'
import Home from '../pages/home/Index'
import Detail from '../pages/detail/Index'

let routes =createBrowserRouter([
    {
        path:'/',
        element:<Home></Home>
    },
   
    {
        path:'/detail',
        element:<Detail></Detail>
    },
     {
        path:'*',
        element:<Error></Error>
    },
])

export default routes